package de.fhtrier.mp.wollmaus.map;


public class StageContainer {

	private static final Stage stage0 = new Stage("Files/maps/Map1.tmx", "Files/maps/Screen1.jpg");
	private static final Stage stage1 = new Stage("Files/maps/Map2.tmx", "Files/maps/Screen2.jpg");
	private static final Stage stage2 = new Stage("Files/maps/Map3.tmx", "Files/maps/Screen3.jpg");
	private static final Stage stage3 = new Stage("Files/maps/Map4.tmx", "Files/maps/Screen4.jpg");

	private static final Stage[] stageArray = { stage0, stage1, stage2, stage3 };

	private static int current = -1;

	public static Stage getNextStage() {
		current++;
		if (current >= stageArray.length)
			current = stageArray.length-1;
		return stageArray[current];
	}
	
	public static boolean isLastStage() {
		return current >= stageArray.length-1;
	}

	public static Stage getPreviousStage() {
		if (current > 0) {
			current--;
		}
		return stageArray[current];
	}
	
	public static int getCurrentStageNumber() {
		return current;
	}

}
